

function getPoints(){
    var points = [];
    return getPointReal().map(function(d){
        var pt = d[4].split(",");
        // console.log(pt);
        return {"lnglat":[pt[0], pt[1]], "name":d[1], "style":2};
    });
    return points;
}

var source = [
    {
        title:'家有购物IPTV6地有效订购总金额趋势',
        label:'家有购物累计有效订单金额',
        unit:'万元',
        data:[
            ['2017-08', '5.83'],
            ['2017-09', '20.88'],
            ['2017-10', '5.43'],
            ['2017-11', '99.85'],
            ['2017-12', '204.29'],
            ['2018-01', '299.84'],
            ['2018-02', '391.21'],
            ['2018-03', '368.16'],
            ['2018-04', '418.02'],
            ['2018-05', '481.56']
        ]
    }, {
        title:'家有购物IPTV各省有效订单金额分布',
        data:[
            ['四川', '10,344,081.00'],
            ['重庆', '5,199,178.00'],
            ['浙江', '3,565,265.00'],
            ['安徽', '3,100,624.00'],
            ['广东', '430,380.00'],
            ['山东', '243,650.00']
        ]
    }, {
        title:'家有购物IPTV各地有效订单金额趋势',
        names:['成都', '重庆', '浙江', '安徽', '广东', '山东'],
        data:[
            {'name':'2017-08', value:['0.03', '73.01', '0.00', '0.05', '0.00', '5.75']},
            {'name':'2017-09', value:['0.10', '87.48', '0.00', '0.09', '0.00', '20.69']},
            {'name':'2017-10', value:['0.16', '94.44', '0.33', '0.00', '3.71', '1.23']},
            {'name':'2017-11', value:['85.88', '94.48', '0.20', '0.00', '13.37', '0.40']},
            {'name':'2017-12', value:['189.81', '95.89', '0.04', '0.00', '14.02', '0.43']},
            {'name':'2018-01', value:['156.66', '74.87', '28.70', '29.95', '9.55', '0.12']},
            {'name':'2018-02', value:['161.76', '97.21', '87.45', '43.89', '0.65', '0.26']},
            {'name':'2018-03', value:['137.83', '104.48', '81.33', '43.46', '0.25', '0.81']},
            {'name':'2018-04', value:['150.87', '113.08', '82.38', '70.51', '0.98', '0.20']},
            {'name':'2018-05', value:['151.60', '130.28', '76.67', '122.25', '0.51', '0.24']}
        ]
    }, {
        title:'大麦OTT有效订单金额按月趋势',
        data:[
            ['2018年4月', '342080'],
            ['2018年5月', '1190202']
        ]
    }, {
        title:'大麦OTT有效订单金额各频道占比',
        data:[
            ['环球购物', '330277'],
            ['家有购物', '223717'],
            ['时尚购', '494714'],
            ['优购物', '483574'],
        ]
    }, {
        title:'传统覆盖合同签订金额',
        data:[
            ['1月', '20'],
            ['2月', '0'],
            ['3月', '24508.75'],
            ['4月', '1158.3'],
            ['5月', '317.74']
        ]
    }, {
        title:'传统覆盖审计确认收入',
        names:['收入（元）', '成本（元）', '毛利', '毛利率'],
        data:[
            {'name':'1月', value:['5618000', '4687800', '930200', '0.165574938']},
            {'name':'2月', value:['3708500', '3100100', '608400', '0.164055548']},
            {'name':'3月', value:['8450700', '7536900', '913800', '0.108133054']},
            {'name':'4月', value:['31291448.82', '25115175.97', '6176272.85', '0.197378935']}
        ]
    }, {
        title:'传统覆盖回款',
        data:[
            ['1月', '6800000'],
            ['2月', '2508722.48'],
            ['3月', '14589821.1'],
            ['4月', '5983290'],
            ['5月', '16429500']
        ]
    }, {
        title:'联合运营项目进展',
        names:['合同', '开票', '回款'],
        data:[
            ['16890', '6232.89', '6232.89'],
            ['14906', '498', '0'],
            ['9303.74', '349.37', '0']
        ]
    }, 
    ////-------------------------9--------------------------------
    {
        title:'金麦客设备激活付费比例',
        data:[
            ['已激活', '1223'], 
            ['目前VIP', '728'], 
            ['自主付费', '328']
        ]
    }, {
        title:'金麦客会员产品充值次数趋势',
        names:['1个月VIP', '3个月VIP', '6个月VIP', '12个月VIP', '24个月VIP', '32个月VIP'],
        data:[
            {'name':'2018年第1周', value:['1', '0', '0', '1', '0', '0']},
            {'name':'2018年第2周', value:['7', '0', '0', '1', '0', '0']},
            {'name':'2018年第3周', value:['5', '2', '0', '0', '0', '0']},
            {'name':'2018年第4周', value:['8', '1', '0', '2', '0', '0']},
            {'name':'2018年第5周', value:['9', '1', '0', '1', '0', '1']},
            {'name':'2018年第6周', value:['6', '4', '0', '3', '1', '0']},
            {'name':'2018年第7周', value:['12', '2', '1', '4', '0', '0']},
            {'name':'2018年第8周', value:['5', '1', '0', '3', '0', '0']},
            {'name':'2018年第9周', value:['8', '3', '0', '7', '1', '0']},
            {'name':'2018年第10周', value:['0', '2', '0', '0', '0', '0']},
            {'name':'2018年第11周', value:['3', '1', '0', '4', '0', '0']},
            {'name':'2018年第12周', value:['5', '0', '0', '2', '0', '0']},
            {'name':'2018年第13周', value:['8', '1', '0', '3', '0', '0']},
            {'name':'2018年第14周', value:['8', '0', '0', '4', '0', '1']},
            {'name':'2018年第15周', value:['5', '0', '0', '3', '0', '0']},
            {'name':'2018年第16周', value:['13', '0', '1', '6', '1', '0']},
            {'name':'2018年第17周', value:['13', '1', '1', '2', '0', '0']},
            {'name':'2018年第18周', value:['7', '0', '0', '4', '0', '0']},
            {'name':'2018年第19周', value:['11', '0', '0', '2', '0', '0']},
            {'name':'2018年第20周', value:['13', '1', '0', '0', '0', '0']},
            {'name':'2018年第21周', value:['5', '0', '0', '2', '0', '0']}
        ]
    }, {
        title:'金麦客会员产品充值占比',
        data:[
            ['1个月VIP', '152'],
            ['3个月VIP', '20'],
            ['6个月VIP', '3'],
            ['12个月VIP', '54'],
            ['24个月VIP', '3'],
            ['32个月VIP', '2']
        ]
    }, {
        title:'金麦客共享设备平均每台每周共享收入',
        data:[
            ['2018-2', '21.5'],
            ['2018-3', '35.5'],
            ['2018-4', '67.25'],
            ['2018-5', '81.75'],
            ['2018-6', '91.75'],
            ['2018-7', '70.5'],
            ['2018-8', '48.5'],
            ['2018-9', '18.75'],
            ['2018-10', '30.25'],
            ['2018-11', '26'],
            ['2018-12', '25.25'],
            ['2018-13', '13'],
            ['2018-14', '9.5'],
            ['2018-15', '34.75'],
            ['2018-16', '91.5'],
            ['2018-17', '95.28'],
            ['2018-18', '16.80'],
            ['2018-19', '19.43'],
            ['2018-20', '45.64'],
            ['2018-21', '27.45']
        ]
    }, {
        title:'金麦客共享产品扫码次数趋势',
        names:['30分钟体验唱', '60分钟欢乐唱', '2小时乐享唱', '3小时嗨翻唱', '5小时霸王唱'],
        data:[
            {'name':'2018年第1周', value:['3', '8', '1', '0', '0']},
            {'name':'2018年第2周', value:['6', '5', '0', '0', '0']},
            {'name':'2018年第3周', value:['7', '2', '4', '1', '0']},
            {'name':'2018年第4周', value:['4', '6', '3', '4', '2']},
            {'name':'2018年第5周', value:['7', '7', '5', '4', '2']},
            {'name':'2018年第6周', value:['22', '13', '3', '3', '0']},
            {'name':'2018年第7周', value:['2', '11', '6', '2', '1']},
            {'name':'2018年第8周', value:['4', '6', '6', '2', '0']},
            {'name':'2018年第9周', value:['0', '4', '1', '1', '0']},
            {'name':'2018年第10周', value:['6', '2', '1', '1', '1']},
            {'name':'2018年第11周', value:['14', '2', '0', '0', '0']},
            {'name':'2018年第12周', value:['6', '2', '1', '0', '1']},
            {'name':'2018年第13周', value:['2', '1', '0', '0', '1']},
            {'name':'2018年第14周', value:['3', '2', '0', '0', '0']},
            {'name':'2018年第15周', value:['9', '5', '1', '1', '0']},
            {'name':'2018年第16周', value:['10', '11', '2', '1', '0']},
            {'name':'2018年第17周', value:['7', '6', '3', '1', '0']},
            {'name':'2018年第18周', value:['2', '4', '0', '0', '0']},
            {'name':'2018年第19周', value:['7', '2', '1', '0', '0']},
            {'name':'2018年第20周', value:['21', '4', '0', '1', '0']},
            {'name':'2018年第21周', value:['6', '4', '0', '0', '0']}
        ]
    }, {
        title:'金麦客共享产品扫码次数占比',
        data:[
            ['30分钟体验唱', '148'],
            ['60分钟欢乐唱', '107'],
            ['2小时乐享唱', '38'],
            ['3小时嗨翻唱', '22'],
            ['5小时霸王唱', '8'],
        ]
    }, 
    ////---------------------------------------------------------------------
    {
        title: '盈亏平衡点有效销售金额',
        names:['2018/5/20', '2018/5/27', '2018/6/20', '2018/7/20', '2018/8/20', '2018/9/20', '2018/10/20', '2018/11/20', '2018/12/20', '2019/1/20', '2019/2/20', '2019/3/20', '2019/4/20'],
        data: [
            {'name':'毛利15%有效销售金额', value:[1568627, 1882352, 18823529]},
            {'name':'项目盈亏平衡点', value:[16000000]},
            {'name':'毛利20%有效销售金额', value:[1666666, 2000000, 20000000]},
            {'name':'现有有效销售金额', value:[1579264]}
        ]
    }, {
        title: 'IPTV4盈亏平衡点有效销售额',
        names: ['分成比例10%', '分成比例12%', '分成比例15%'],
        data:[
            {'name':'盈亏平衡点有效销售额', value:['9032', '7527', '6021']},
            {'name':'目标毛利15%有效销售额', value:['10626', '8855', '7084']},
            {'name':'目标毛利20%有效销售额', value:['11290', '9408', '7527']}
        ]
    }
    
];






function getPointReal(){
    var source = [
        ["898460158140047","海口美兰凯禾中式便捷快餐店","0","海口美兰凯禾中式便捷快餐店","110.372,20.033478"],
        ["898460180430088","海南精功眼镜连锁有限公司","1","海南精功眼镜连锁有限公司","110.358305,20.028817"],
        ["898460150210364","海口美兰振皇家居店","1","海口美兰振皇家居店","110.363569,20.030006"],
        ["898460150210360","海口美兰万恒家居店","1","海口美兰万恒家居店","110.363569,20.030006"],
        ["898460159980210","海口松岛名门超市有限公司","0","海口市蓝天路28号名门广场E栋2号","110.352285,20.022569"],
        ["898460158121351","海南阿正靓汤饮食有限公司","0","海南阿正靓汤饮食有限公司","110.353031,20.023766"],
        ["898460147220029","海南阳光国际旅行社有限公司","0","海口市蓝天路31号名门广场B栋1108房","110.352544,20.022897"],
        ["898460154990076","海口美兰邱天月特产专卖店","0","海口市蓝天路民生市场临街铺面20号","110.356773,20.024921"],
        ["898460158129542","海口美兰渝奇味老火锅餐饮店","0","海口美兰渝奇味老火锅餐饮店","110.348979,20.030067"],
        ["898460158121371","海口美兰原味主张名门店","1","海口美兰原味主张名门店","110.358305,20.028817"],
        ["898460180110118","海口美兰戴丽医疗美容诊所","1","海口美兰戴丽医疗美容诊所","110.351509,20.021749"],
        ["100460148140100","海口美兰蓝天电信特许营业厅","0","海口市蓝天路50号中建花园铺面","110.357434,20.024420"],
        ["898460145110106","海口鸿汇商旅有限公司","0","海口市蓝天路12号银龙大厦A座307房","110.346906,20.021187"],
        ["898460170130055","海南民本房地产交易服务有限公司","0","海南省海口市龙华区蓝天路4号","110.341222,20.025802"],
        ["898460158121010","海南龙泉人酒家有限公司","1","海南龙泉人酒家有限公司","110.352510,20.022708"],
        ["898460145110814","海南旅总国际旅行社有限公司","0","海南旅总国际旅行社有限公司","110.342711,20.023935"],
        ["898460158124702","海口美兰鑫余味重庆老火锅餐饮店","1","海口美兰鑫余味重庆老火锅餐饮店","110.357269,20.027789"],
        ["898460159770027","海口凯粤房地产投资咨询有限公司","0","海口凯粤房地产投资咨询有限公司","110.35329,20.026526"],
        ["303460154221352","海口市幕森影城有限公司","1","海南省海口市蓝天路31号名门广场北区第三层C005号商铺","110.353233,20.024103"],
        ["303460153310001","海口美兰兰林超市","0","海口市蓝天路西21号汇亘大厦一楼","110.342957,20.023671"],
        ["898460159210252","海口银岛洋酒商行","1","海南省海口市蓝天路23号","110.348200,20.021700"],
        //["898460175230174","海南海亮汽车租赁有限公司","0","海南海亮汽车租赁有限公司","110.344607,20.063850"],
        ["303460158120061","海南阿正靓汤饮食有限公司","0","海口市蓝天路31号名门广场北区B幢709","110.353031,20.023766"],
        ["898460156410040","海口美兰可爱可亲母婴用品生活馆","0","海口市蓝天路41号","110.354569,20.024504"],
        ["898460159988593","海南华新商务有限公司","0","海南华新商务有限公司","110.357299,20.031207"],
        ["898460159210248","海口美兰老地方烟酒行","0","海南省海口市蓝天路36号","110.354019,20.023193"],
        ["898460150210037","海口美兰德邦家居店","0","海口市蓝天路42号永安第一家私广场","110.357000,20.024614"],
        ["898469047220003","海南海世界旅行社有限公司","0","海南省海口市蓝天路西21号汇亘大厦201室","110.342957,20.023671"],
        ["898460159981276","海口美兰邱天月特产专卖店","0","海南省海口市美兰区蓝天路民生市场临街铺面","110.356773,20.024921"],
        ["898460158121220","海口美兰金燕府菜馆","1","海口美兰金燕府菜馆","110.358373,20.028819"],
//        ["898460158140047","海口美兰凯禾中式便捷快餐店","0","海口美兰凯禾中式便捷快餐店","110.198293,20.044001"]
    ];
    return source;
}




var smb_circle = 'image://';


